package exo1;

public class Personne {
	private String nom;
	private boolean administrateur;
	
	public Personne(String nom, boolean admin){
		this.nom = nom;
		this.administrateur = admin;
	}

	public String getNom() {
		return nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public boolean isAdministrateur() {
		return administrateur;
	}

	public void setAdministrateur(boolean administrateur) {
		this.administrateur = administrateur;
	}

@Override
	public String toString() {
		return "Nom = " + this.nom/* + ", administrateur = " + this.administrateur*/;
	}
}
